package site.yunnong.atvris.dao.domain;

import lombok.Builder;

import java.io.Serializable;
import java.time.LocalDateTime;

@Builder
public class Banner implements Serializable {
    private Long id;

    private Integer type;

    private Long relativeId;

    private String link;

    private String cover;

    private String title;

    private Integer status;

    private Integer sort;

    private LocalDateTime ctime;

    private LocalDateTime utime;

    private String creatorUcid;

    private String creatorName;

    private String updateUcid;

    private String updateName;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getRelativeId() {
        return relativeId;
    }

    public void setRelativeId(Long relativeId) {
        this.relativeId = relativeId;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public LocalDateTime getCtime() {
        return ctime;
    }

    public void setCtime(LocalDateTime ctime) {
        this.ctime = ctime;
    }

    public LocalDateTime getUtime() {
        return utime;
    }

    public void setUtime(LocalDateTime utime) {
        this.utime = utime;
    }

    public String getCreatorUcid() {
        return creatorUcid;
    }

    public void setCreatorUcid(String creatorUcid) {
        this.creatorUcid = creatorUcid;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getUpdateUcid() {
        return updateUcid;
    }

    public void setUpdateUcid(String updateUcid) {
        this.updateUcid = updateUcid;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", relativeId=").append(relativeId);
        sb.append(", link=").append(link);
        sb.append(", cover=").append(cover);
        sb.append(", title=").append(title);
        sb.append(", status=").append(status);
        sb.append(", sort=").append(sort);
        sb.append(", ctime=").append(ctime);
        sb.append(", utime=").append(utime);
        sb.append(", creatorUcid=").append(creatorUcid);
        sb.append(", creatorName=").append(creatorName);
        sb.append(", updateUcid=").append(updateUcid);
        sb.append(", updateName=").append(updateName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}